package com.fast.develop.core.web;


import java.util.HashMap;
import java.util.Map;

/**
 * @author 莫寅
 * @createTime 2022-06-18 05:09
 * @desc：
 */
public class MappingRegistry {

    private Map<String, MappingRegistor> mappingRegistors = new HashMap<>();

    public void register(MappingRegistor mappingRegistor){
        mappingRegistors.put(mappingRegistor.type(), mappingRegistor);
    }

    public Map<String, MappingRegistor> getMappingRegistors() {
        return mappingRegistors;
    }
}
